#include <jni.h>
#include <string>

extern "C"
JNIEXPORT jstring

JNICALL
Java_com_redone_yiyuan_classscreen_MainActivity_stringFromJNI(
        JNIEnv *env,
        jobject /* this */) {
    std::string hello = "Hello from C++ RedOne";
    return env->NewStringUTF(hello.c_str());
}


extern "C"
JNIEXPORT jstring

JNICALL
Java_com_redone_yiyuan_classscreen_MainActivity_strFromJNI(
        JNIEnv *env,
jobject /* this */) {
std::string hello = "Hello RedOne";
return env->NewStringUTF(hello.c_str());
}